#ifndef ACCEPTOR_HEADER_
#define ACCEPTOR_HEADER_

#include <winsock2.h>
#include <string>
#include "NetAddr.h"
#include "Thread.h"

class Acceptor
{
public:
	bool start(const NetAddr &addr);

protected:
	virtual bool onConnected(SOCKET clientSock);
	SOCKET listenSock;
};

#endif 

